package com.sky.loveshop.service;

import com.sky.loveshop.entity.aliPay.OrderRequest;
import com.sky.loveshop.entity.aliPay.PreCreatResponse;
import com.sky.loveshop.entity.exception.BizException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * @author xcy
 * @version V1.0
 * @description
 * @date 2024/9/1 11:21
 */
public interface AliPayService {

    void testOrderPay(Map<String, Object> param, HttpServletResponse response) throws IOException;

    String orderPayNotify(HttpServletRequest msg);

    PreCreatResponse preCreatRequest();

    String aliPayTradeQuery(String outTradeNo);

    Integer aliPayTradeQueryOrderStatus(String orderNo);

    PreCreatResponse preCreatOrderAndDetail(OrderRequest request) throws BizException;

    Integer aliPayTradeClose(String orderNo);
}
